//
//  ThirdViewController.m
//  UI_Homework_07_01
//
//  Created by 黄威 on 16/5/11.
//  Copyright © 2016年 黄威. All rights reserved.
//

#import "ThirdViewController.h"

@interface ThirdViewController ()

@end

@implementation ThirdViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self create];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

- (void)create{

    self.view.backgroundColor = [UIColor blueColor];
    
//    UIButton *button1 = [[UIButton alloc]initWithFrame:CGRectMake(270, 0, 52, 52)];
//   // button1.backgroundColor = [UIColor whiteColor];
//   [button1 setImage:[UIImage imageNamed:@"jiahao.png"] forState:UIControlStateNormal];
//    [self.navigationController.navigationBar addSubview:button1];
//
//
//    UIButton *button2 = [[UIButton alloc]initWithFrame:CGRectMake(323, 0, 52, 52)];
//   [button2 setImage:[UIImage imageNamed:@"放大镜.png"] forState:UIControlStateNormal];
//    [self.navigationController.navigationBar addSubview:button2];
//    [button1 release];
//    [button2 release];

    @autoreleasepool {
         self.navigationItem.rightBarButtonItems = @[[[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"放大镜"] style:UIButtonTypeInfoDark target:self action:@selector(handle99)],[[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"jiahao.png"] style:UIButtonTypeInfoDark target:self action:@selector(handle99)]];
    }
    
   

}
- (void)handle99{

    [self.navigationController popToViewController:self.navigationController.viewControllers[1] animated:YES];

}



/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
